Proof of concept part of cpython extension using Pybind11#173
Closed
Proof of concept part of cpython extension using Pybind11#173
Conversation
34 tasks
Contributor
Author
|
This is pretty stale, and just a proof of concept, so I'll close it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Like #172 this is a proof of concept meant to generate discussion. It implements a
WaitSetclass in c++ and uses pybind11 to create a cpython extension. To build firstpip3 install pybind11.Advantages over Cython
Disadvantages compared to Cython
rcl.pxd+_rclpy_wait_set.px= 208 lines,_rcl_wait_set.cpp= 244)PyCapsule_GetPointerhere with call using cython).is_subscription_readyinstead ofready_subscriptionsandpysubsis not actually the python type because it would have been a little more verbose with the checks.timeouton wait here and when using cython)Same as Cython
setup.pyMisc info
<project>Config.cmake. It appears to have some nice CMake code if it is installed from source.connects to #172